import request from '@/utils/request'

// 查询采购入库单列表
export function listWarehousingRequisition(query) {
  return request({
    url: '/warehousingRequisition/warehousingRequisition/list',
    method: 'get',
    params: query
  })
}

// 查询采购入库单详细
export function getWarehousingRequisition(warehousingRequisitionId) {
  return request({
    url: '/warehousingRequisition/warehousingRequisition/' + warehousingRequisitionId,
    method: 'get'
  })
}

// 新增采购入库单
export function addWarehousingRequisition(data) {
  return request({
    url: '/warehousingRequisition/warehousingRequisition',
    method: 'post',
    data: data
  })
}

// 修改采购入库单
export function updateWarehousingRequisition(data) {
  return request({
    url: '/warehousingRequisition/warehousingRequisition',
    method: 'put',
    data: data
  })
}

// 删除采购入库单
export function delWarehousingRequisition(warehousingRequisitionId) {
  return request({
    url: '/warehousingRequisition/warehousingRequisition/' + warehousingRequisitionId,
    method: 'delete'
  })
}


  // 审核
  export function auditWare(data) {
    return request({
      url: '/warehousingRequisition/warehousingRequisition/audit',
      method: 'put',
      data: data
    })
  }

